package mysql

func CreateOrder(order Order) (Order, error) {
	res := db.Create(&order)
	return order, res.Error
}
func GetOrderInfo(order Order) (Order, error) {
	newOrder := Order{}
	res := db.Where(order).First(&newOrder)
	return newOrder, res.Error
}
func SaveOrder(order Order) (Order, error) {
	res := db.Save(&order)
	return order, res.Error
}
